<template>
	<view class="login-wrapper" :style="colorStyle">
		<view class="login">
			<view class="login-t">
				<view class="yuan"></view>
				<view class="login-tb">
					<view class="title">欢迎登录维骑动力</view>
					<view class="detail">
						<text>维骑动力</text>
						<text>共创未来</text>
					</view>
				</view>
			</view>
			<view class="login-b">
				<view class="login-bt">
					<view class="login-btl" :class="loginType==1 ? 'login-activ':''" @click="selType(1)">
						<view class="title">登录</view>
						<view class="tiao"></view>
					</view>
					<view class="login-btl" :class="loginType==2 ? 'login-activ':''" @click="selType(2)">
						<view class="title">注册</view>
						<view class="tiao"></view>
					</view>
				</view>
				<!-- 账号登录 -->
				<view class="login-bs" v-if="current==0">
					<view class="login-list">
						<view class="list-l">
							<image src="/static/images/login5.png" class="pimg timgs"></image>
						</view>
						<input class="inpu" placeholder="输入手机号码" v-model="account" maxlength="11" required  cursor-spacing="140"/>
					</view>
					<view class="login-list">
						<view class="list-l">
							<image src="/static/images/login3.png" class="pwimg"></image>
						</view>
						<input class="inpu" placeholder="填写登录密码" v-model="password" type="password" required  cursor-spacing="140"/>
					</view>
					<button class="btn" @click="submit">登录</button>
					<view class="login-qie">
						<text @click="current = 1">快速登陆</text>
					</view>
				</view>
				<!-- 快速登陆 -->
				<view class="login-bs" v-if="current==1">

					<view class="login-list">
						<view class="list-l">
							<image src="/static/images/login5.png" class="pimg timgs"></image>
						</view>
						<input class="inpu" placeholder="输入手机号码" v-model="account" maxlength="11" required  cursor-spacing="140"/>
					</view>
					<view class="login-list">
						<view class="list-l">
							<image src="/static/images/login2.png" class="pwimg"></image>
						</view>
						<input class="inpu" placeholder="请输入验证码" v-model="captcha" type="number" required
							maxlength="6"  cursor-spacing="140"/>
						<button class="code" :disabled="disabled" :class="disabled === true ? 'on' : ''" @click="code">
							{{ text }}
						</button>
					</view>
					<button class="btn" @click="loginMobile">登录</button>
					<view class="login-qie">
						<text @click="current = 0">账号登录</text>
					</view>
				</view>
				<!-- 注册 -->
				<view class="login-bs" v-if="current==2">
					<view class="login-list">
						<view class="list-l">
							<image src="/static/images/login1.png" class="pimg"></image>
						</view>
						<input class="inpu" placeholder="输入真实姓名" required v-model="nickname" maxlength="11"  cursor-spacing="140"/>
					</view>
					<view class="login-list">
						<view class="list-l">
							<image src="/static/images/login5.png" class="pimg timgs"></image>
						</view>
						<input class="inpu" placeholder="输入手机号码" v-model="account" maxlength="11" required  cursor-spacing="140"/>
					</view>
					<view class="login-list">
						<view class="list-l">
							<image src="/static/images/login2.png" class="pwimg"></image>
						</view>
						<input class="inpu" placeholder="请输入验证码" v-model="captcha" type="number" required maxlength="6"  cursor-spacing="140"/>
						<button class="code" :disabled="disabled" :class="disabled === true ? 'on' : ''" @click="code">
							{{ text }}
						</button>
					</view>
					<view class="login-list">
						<view class="list-l">
							<image src="/static/images/login3.png" class="pwimg"></image>
						</view>
						<input class="inpu" placeholder="填写登录密码" v-model="password" type="password" required  cursor-spacing="140"/>
					</view>
					<view class="login-list" v-if="!cacheSpread">
						<view class="list-l">
							<image src="/static/images/login4.png" class="pimg"></image>
						</view>
						<input class="inpu" placeholder="推广码" v-model="spread" maxlength="11" required  cursor-spacing="140"/>
					</view>

					<view class="yaocode" v-if="cacheSpread">邀请码:{{spread}}</view>
					<button class="btn btn-register" @click="register">注册</button>
				</view>
			</view>


			<view class="login-btoms">
				<view class="tiao"></view>
				<view class="title">维骑动力</view>
				<view class="tiao"></view>
			</view>
		</view>

		<!-- <view class="shading">
			<image :src="logoUrl" v-if="logoUrl" />
			<image src="/static/images/logo2.png" v-else />
		</view>
		<view class="whiteBg" v-if="formItem === 1">
			<view class="list" v-if="current !== 1">
				<form @submit.prevent="submit">
					<view class="item">
						<view class="acea-row row-middle">
							<image src="/static/images/phone_1.png" style="width: 24rpx; height: 34rpx;"></image>
							<input type="text" placeholder="输入手机号码" v-model="account" maxlength="11" required />
						</view>
					</view>
					<view class="item">
						<view class="acea-row row-middle">
							<image src="/static/images/code_1.png" style="width: 28rpx; height: 32rpx;"></image>
							<input type="password" placeholder="填写登录密码" v-model="password" required />
						</view>
					</view>
				</form>
				 <navigator class="forgetPwd" hover-class="none" url="/pages/users/retrievePassword/index">
					<span class="iconfont icon-wenti"></span>忘记密码
				</navigator>
			</view>
			<view class="list" v-if="current !== 0 || appLoginStatus || appleLoginStatus">
				<view class="item">
					<view class="acea-row row-middle">
						<image src="/static/images/phone_1.png" style="width: 24rpx; height: 34rpx;"></image>
						<input type="text" placeholder="输入手机号码" v-model="account" maxlength="11" />
					</view>
				</view>
				<view class="item">
					<view class="acea-row row-middle">
						<image src="/static/images/code_2.png" style="width: 28rpx; height: 32rpx;"></image>
						<input type="text" placeholder="填写验证码" maxlength="6" class="codeIput" v-model="captcha" />
						<button class="code" :disabled="disabled" :class="disabled === true ? 'on' : ''" @click="code">
							{{ text }}
						</button>
					</view>
				</view>
				<view class="item" v-if="isShowCode">
					<view class="acea-row row-middle">
						<image src="/static/images/code_2.png" style="width: 28rpx; height: 32rpx;"></image>
						<input type="text" placeholder="填写验证码" class="codeIput" v-model="codeVal" />
						<view class="code" @click="again"><img :src="codeUrl" /></view>
					</view>
				</view>
			</view>
			<view class="logon" @click="loginMobile" v-if="current !== 0">登录</view>
			<view class="logon" @click="submit" v-if="current === 0">登录</view>
	
			<view class="tips">
				<view v-if="current==0" @click="current = 1">快速登录</view>
				<view v-if="current==1" @click="current = 0">账号登录</view>
			</view>
		 -->
		<!-- #ifdef APP-PLUS -->
		<!-- <view class="appLogin" v-if="!appLoginStatus && !appleLoginStatus">
				<view class="hds">
					<span class="line"></span>
					<p>其他方式登录</p>
					<span class="line"></span>
				</view>
				<view class="btn-wrapper">
					<view class="btn wx" @click="wxLogin">
						<span class="iconfont icon-s-weixindenglu1"></span>
					</view>
					<view class="btn mima" v-if="current == 1" @click="current =0">
						<span class="iconfont icon-s-mimadenglu1"></span>
					</view>
					<view class="btn yanzheng" v-if="current == 0" @click="current =1">
						<span class="iconfont icon-s-yanzhengmadenglu1"></span>
					</view>
					<view class="apple-btn" @click="appleLogin" v-if="appleShow">
						<view class="iconfont icon-s-pingguo"></view>通过Apple登录
					</view>
				</view>
			</view> -->
		<!-- #endif -->
		<!--</view>
		<view class="bottom"></view> -->
	</view>
</template>
<script>
	import dayjs from "@/plugin/dayjs/dayjs.min.js";
	import sendVerifyCode from "@/mixins/SendVerifyCode";
	import {
		loginH5,
		loginMobile,
		registerVerify,
		register,
		getCodeApi,
		getUserInfo,
		appleLogin
	} from "@/api/user";
	import attrs, {
		required,
		alpha_num,
		chs_phone
	} from "@/utils/validate";
	import {
		validatorDefaultCatch
	} from "@/utils/dialog";
	import {
		getLogo
	} from "@/api/public";
	// import cookie from "@/utils/store/cookie";
	import {
		VUE_APP_API_URL
	} from "@/utils";
	// #ifdef APP-PLUS
	import {
		wechatAppAuth
	} from '@/api/api.js'
	// #endif
	const BACK_URL = "login_back_url";
	import colors from '@/mixins/color.js';
	export default {
		name: "Login",
		mixins: [sendVerifyCode, colors],
		data: function() {
			return {
				navList: ["快速登录", "账号登录"],
				current: 0,
				nickname: "",
				account: "",
				password: "",
				captcha: "",
				formItem: 1,
				type: "login",
				logoUrl: "",
				keyCode: "",
				codeUrl: "",
				codeVal: "",
				isShowCode: false, //显示图形验证码
				appLoginStatus: false, // 微信登录强制绑定手机号码状态
				appUserInfo: null, // 微信登录保存的用户信息
				appleLoginStatus: false, // 苹果登录强制绑定手机号码状态
				appleUserInfo: null,
				appleShow: false, // 苹果登录版本必须要求ios13以上的
				keyLock: true,
				oldCurrent: 1,
				loginType: 1, //1登陆 2注册
				spread: "", //邀请码
				cacheSpread: 0
			};
		},
		watch: {
			formItem: function(nval, oVal) {
				console.log(nval)
				if (nval == 1) {
					this.type = 'login'
				} else {
					this.type = 'register'
				}
			}
		},
		onLoad(options) {
			let self = this
			if (options.current) {
				this.current = options.current;
				this.loginType = options.current;
			}
			uni.getSystemInfo({
				success: (res) => {
					if (res.platform.toLowerCase() == 'ios' && this.getSystem(res.system)) {
						self.appleShow = true
					}
				}
			});
			this.spread = this.$Cache.get("spread");
			if (this.$Cache.get("spread")) {
				this.cacheSpread = 1;
			}
		},
		mounted: function() {
			// this.getCode();
			this.getLogoImage();
		},
		methods: {
			//切换
			selType(e) {
				if (this.loginType == e) {
					return
				}
				let current = this.current + ""
				let oldCurrent = this.oldCurrent + ""
				this.loginType = e
				this.current = oldCurrent
				this.formItem = e
				if (e == 2) {
					this.current = 2
				}
				this.oldCurrent = current
			},
			// IOS 版本号判断
			getSystem(system) {
				let str
				system.toLowerCase().indexOf('ios') === -1 ? str = system : str = system.split(' ')[1]
				if (str.indexOf('.'))
					return str.split('.')[0] >= 13
				return str >= 13
			},
			// 苹果登录
			appleLogin() {
				let self = this
				this.account = ''
				this.captcha = ''
				uni.showLoading({
					title: '登录中'
				})
				uni.login({
					provider: 'apple',
					timeout: 10000,
					success(loginRes) {
						uni.getUserInfo({
							provider: 'apple',
							success: function(infoRes) {
								self.appleUserInfo = infoRes.userInfo
								self.appleLoginApi()
							},
							fail() {
								uni.showToast({
									title: '获取用户信息失败',
									icon: 'none',
									duration: 2000
								})
							},
							complete() {
								uni.hideLoading()
							}
						});
					},
					fail(error) {}
				})
			},
			// 苹果登录Api
			appleLoginApi() {
				let self = this
				appleLogin({
					openId: self.appleUserInfo.openId,
					email: self.appleUserInfo.email || '',
					phone: this.account,
					captcha: this.captcha
				}).then(({
					data
				}) => {
					if (data.isbind) {
						uni.showModal({
							title: '提示',
							content: '请绑定手机号后，继续操作',
							showCancel: false,
							success: function(res) {
								if (res.confirm) {
									self.current = 1
									self.appleLoginStatus = true
								}
							}
						});
					} else {
						self.$store.commit("LOGIN", {
							'token': data.token,
							'time': data.expires_time - self.$Cache.time()
						});
						let backUrl = self.$Cache.get(BACK_URL) || "/pages/index/index";
						self.$Cache.clear(BACK_URL);
						self.$store.commit("SETUID", data.userInfo.uid);
						uni.reLaunch({
							url: backUrl
						});
					}
				}).catch(error => {
					uni.showModal({
						title: '提示',
						content: `错误信息${error}`,
						success: function(res) {
							if (res.confirm) {
								console.log('用户点击确定');
							} else if (res.cancel) {
								console.log('用户点击取消');
							}
						}
					});
				})
			},
			// App微信登录
			wxLogin() {
				let self = this
				this.account = ''
				this.captcha = ''
				uni.showLoading({
					title: '登录中'
				})
				uni.login({
					provider: 'weixin',
					success: function(loginRes) {
						// 获取用户信息
						uni.getUserInfo({
							provider: 'weixin',
							success: function(infoRes) {
								self.appUserInfo = infoRes.userInfo
								self.wxLoginApi()
							},
							fail() {
								uni.showToast({
									title: '获取用户信息失败',
									icon: 'none',
									duration: 2000
								})
							},
							complete() {
								uni.hideLoading()
							}
						});
					},
					fail() {
						uni.showToast({
							title: '登录失败',
							icon: 'none',
							duration: 2000
						})
					}
				});
			},

			wxLoginApi() {
				let self = this
				wechatAppAuth({
					userInfo: self.appUserInfo,
					phone: this.account,
					code: this.captcha
				}).then(({
					data
				}) => {
					if (data.isbind) {
						uni.showModal({
							title: '提示',
							content: '请绑定手机号后，继续操作',
							showCancel: false,
							success: function(res) {
								if (res.confirm) {
									self.current = 1
									self.appLoginStatus = true
								}
							}
						});
					} else {
						self.$store.commit("LOGIN", {
							'token': data.token,
							'time': data.expires_time - self.$Cache.time()
						});
						let backUrl = self.$Cache.get(BACK_URL) || "/pages/index/index";
						self.$Cache.clear(BACK_URL);
						self.$store.commit("SETUID", data.userInfo.uid);
						uni.reLaunch({
							url: backUrl
						});
					}
				}).catch(error => {
					uni.showModal({
						title: '提示',
						content: `错误信息${error}`,
						success: function(res) {
							if (res.confirm) {
								console.log('用户点击确定');
							} else if (res.cancel) {
								console.log('用户点击取消');
							}
						}
					});
				})
			},
			again() {
				this.codeUrl =
					VUE_APP_API_URL +
					"/sms_captcha?" +
					"key=" +
					this.keyCode +
					Date.parse(new Date());
			},
			code() {
				let that = this
				getCodeApi()
					.then(res => {
						that.keyCode = res.data.key;
						that.getCode();
					})
					.catch(res => {
						that.$util.Tips({
							title: res
						});
					});
			},
			async getLogoImage() {
				let that = this;
				getLogo(2).then(res => {
					that.logoUrl = res.data.logo_url;
				});
			},
			async loginMobile() {
				let that = this;
				if (!that.account) return that.$util.Tips({
					title: '请填写手机号码'
				});
				if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
					title: '请输入正确的手机号码'
				});
				if (!that.captcha) return that.$util.Tips({
					title: '请填写验证码'
				});
				if (!/^[\w\d]+$/i.test(that.captcha)) return that.$util.Tips({
					title: '请输入正确的验证码'
				});
				if (that.appLoginStatus) {
					that.wxLoginApi()
				} else if (that.appleLoginStatus) {
					that.appleLoginApi()
				} else {
					if (this.keyLock) {
						this.keyLock = !this.keyLock
					} else {
						return that.$util.Tips({
							title: '请勿重复点击'
						});
					}
					loginMobile({
							phone: that.account,
							captcha: that.captcha,
							spread: that.$Cache.get("spread")
						})
						.then(res => {
							let data = res.data;
							that.$store.commit("LOGIN", {
								'token': data.token,
								'time': data.expires_time - this.$Cache.time()
							});
							let backUrl = that.$Cache.get(BACK_URL) || "/pages/index/index";
							that.$Cache.clear(BACK_URL);
							getUserInfo().then(res => {
								this.keyLock = true
								that.$store.commit("SETUID", res.data.uid);
								if (backUrl.indexOf('/pages/users/login/index') !== -1) {
									backUrl = '/pages/index/index';
								}
								uni.reLaunch({
									url: backUrl
								});
							})
						})
						.catch(res => {
							this.keyLock = true
							that.$util.Tips({
								title: res
							});
						});
				}

			},
			async register() {
				let that = this;
				if (!that.nickname) return that.$util.Tips({
					title: '请填写真实姓名'
				});
				if (!that.account) return that.$util.Tips({
					title: '请填写手机号码'
				});
				if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
					title: '请输入正确的手机号码'
				});
				if (!that.captcha) return that.$util.Tips({
					title: '请填写验证码'
				});
				if (!/^[\w\d]+$/i.test(that.captcha)) return that.$util.Tips({
					title: '请输入正确的验证码'
				});
				if (!that.password) return that.$util.Tips({
					title: '请填写密码'
				});
				// if (/^([0-9]|[a-z]|[A-Z]){0,6}$/i.test(that.password)) return that.$util.Tips({
				// 	title: '您输入的密码过于简单'
				// });
				if (!that.spread) return that.$util.Tips({
					title: '请填写推广码'
				});
				
				register({
						nickname: that.nickname,
						account: that.account,
						captcha: that.captcha,
						password: that.password,
						spread: that.spread
					})
					.then(res => {
						that.$util.Tips({
							title: res
						});
						this.selType(1);
					})
					.catch(res => {
						that.$util.Tips({
							title: res
						});
					});
			},
			async getCode() {
				let that = this;
				// that.sendCode();
				// return
				if (!that.account) return that.$util.Tips({
					title: '请填写手机号码'
				});
				if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
					title: '请输入正确的手机号码'
				});
				if (that.formItem == 2) that.type = "register";

				await registerVerify({
						phone: that.account,
						type: that.type,
						key: that.keyCode,
						code: that.codeVal
					})
					.then(res => {
						that.$util.Tips({
							title: res.msg
						});
						that.sendCode();
					})
					.catch(res => {
						that.$util.Tips({
							title: res
						});
					});
			},
			navTap: function(index) {
				this.current = index;
			},
			async submit() {
				let that = this;
				if (!that.account) return that.$util.Tips({
					title: '请填写账号'
				});
				if (!/^[\w\d]{5,16}$/i.test(that.account)) return that.$util.Tips({
					title: '请输入正确的账号'
				});
				if (!that.password) return that.$util.Tips({
					title: '请填写密码'
				});
				if (this.keyLock) {
					this.keyLock = !this.keyLock
				} else {
					return that.$util.Tips({
						title: '请勿重复点击'
					});
				}
				loginH5({
						account: that.account,
						password: that.password,
						spread: that.$Cache.get("spread")
					})
					.then(({
						data
					}) => {
						that.$store.commit("LOGIN", {
							'token': data.token,
							'time': data.expires_time - this.$Cache.time()
						});
						let backUrl = that.$Cache.get(BACK_URL) || "/pages/index/index";
						that.$Cache.clear(BACK_URL);
						getUserInfo().then(res => {
							this.keyLock = true
							that.$store.commit("SETUID", res.data.uid);
							uni.reLaunch({
								url: backUrl
							});
						}).catch(error => {
							this.keyLock = true
						})
					})
					.catch(e => {
						this.keyLock = true
						that.$util.Tips({
							title: e
						});
					});
			}
		}
	};
</script>
<style>
	page {
		background: #fff;
	}
</style>
<style lang="scss">
	.login {
		position: fixed;
		top: 0;
		left: 0;
		width: 750rpx;
		background: #FFFFFF;
		bottom: 0;

		.login-t {
			width: 750rpx;
			height: 458rpx;
			background: linear-gradient(360deg, #70CDFD 0%, #23B2FC 100%);
			border-radius: 0 0 24rpx 24rpx;
			position: relative;

			.yuan {
				background: rgba(216, 216, 216, 0.2);
				width: 490rpx;
				height: 490rpx;
				border-radius: 50%;
				top: -56rpx;
				right: -124rpx;
				position: absolute;
			}

			.login-tb {
				padding-top: 72rpx;
				width: 750rpx;

				.title {
					font-weight: 600;
					color: #FFFFFF;
					line-height: 56rpx;
					padding: 0 24rpx 18rpx;
					font-size: 40rpx;
				}

				.detail {
					padding: 0 24rpx;

					text {
						color: #FFFFFF;
						line-height: 42rpx;
						font-size: 30rpx;
						padding-right: 14rpx;
					}
				}
			}
		}

		.login-b {
			width: 702rpx;
			min-height: 840rpx;
			max-height: 1000rpx;
			background: #FFFFFF;
			box-shadow: 0px 4rpx 30rpx 0px rgba(44, 169, 255, 0.2);
			border-radius: 20rpx;
			margin: -240rpx auto 0;
			position: relative;
			z-index: 7;
			overflow: hidden;
			padding: 40rpx 0rpx 0;
			box-sizing: border-box;

			.login-bt {
				padding: 0rpx 51rpx;
				display: flex;
				align-items: center;

				.login-btl {
					flex: 0 0 120rpx;
					overflow: hidden;
					display: flex;
					height: 85rpx;
					flex-direction: column;
					align-items: center;
					position: relative;
					justify-content: center;

					.title {
						color: #999999;
						font-size: 32rpx;
						text-align: center;
						position: relative;
					}

					.tiao {
						position: absolute;
						bottom: 15rpx;
						left: 0;
						width: 120rpx;
						height: 20rpx;
						background: #FFFFFF;
						border-radius: 20px;
						opacity: 0;

					}
				}

				.login-activ {

					.title {
						font-weight: 600;
						color: #333333;
						font-size: 42rpx;
					}

					.tiao {
						background: #26B3FC;
						opacity: .7;
					}
				}
			}

			.login-bs {
				padding: 0rpx 51rpx;

				.login-list {
					display: flex;
					margin-top: 40rpx;
					height: 97rpx;
					border-radius: 49rpx;
					border: 2rpx solid #979797;
					align-items: center;
					box-sizing: border-box;
				}

				.list-l {
					display: flex;
					justify-content: center;
					align-items: center;
					flex: 0 0 120rpx;
					overflow: hidden;
					height: 100%;

					.pimg {
						width: 46rpx;
						height: 43rpx;
					}

					.pwimg {
						width: 33rpx;
						height: 40rpx;
					}
					.timgs{
						width: 30rpx;
						height: 46rpx;
					}
				}

				.inpu {
					flex: 1;
					padding-right: 20rpx;
					overflow: hidden;
					font-size: 32rpx;
					line-height: 45rpx;
				}

				.code {
					flex: 0 0 160rpx;
					height: 54rpx;
					line-height: 54rpx;
					overflow: hidden;
					background: #26B3FC;
					border-radius: 27rpx;
					color: #FFFFFF;
					font-size: 24rpx;
					margin-right: 30rpx;
				}
			}

			.yaocode {
				color: #333333;
				line-height: 45rpx;
				font-size: 32rpx;
				padding-top: 30rpx;
			}

			.btn {
				margin: 110rpx auto 122rpx;
				width: 600rpx;
				line-height: 97rpx;
				background: #26B3FC;
				box-shadow: 0px 15rpx 18rpx -2px rgba(5, 143, 255, 0.21);
				border-radius: 49rpx;
				color: #FFFFFF;
				font-size: 32rpx;
			}

			.btn-register {
				margin-top: 50rpx;
			}

			.login-qie {
				text-align: center;

				text {
					color: #45BEFD;
					line-height: 40rpx;
					font-size: 28rpx;
				}
			}
		}

		.login-btoms {
			position: fixed;
			bottom: 40rpx;
			left: 0;
			width: 750rpx;
			display: flex;
			justify-content: center;
			align-items: center;

			.tiao {
				width: 60rpx;
				height: 2rpx;
				background: #979797;
			}

			.title {
				color: #999999;
				line-height: 40rpx;
				font-size: 28rpx;
				padding: 0 20rpx;
			}
		}
	}







	.appLogin {
		margin-top: 60rpx;

		.hds {
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 24rpx;
			color: #B4B4B4;

			.line {
				width: 68rpx;
				height: 1rpx;
				background: #CCCCCC;
			}

			p {
				margin: 0 20rpx;
			}
		}

		.btn-wrapper {
			display: flex;
			align-items: center;
			justify-content: center;
			margin-top: 30rpx;

			.btn {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 68rpx;
				height: 68rpx;
				border-radius: 50%;
			}

			.apple-btn {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 246rpx;
				height: 66rpx;
				margin-left: 30rpx;
				background: #EAEAEA;
				border-radius: 34rpx;
				font-size: 24rpx;

				.icon-s-pingguo {
					color: #333;
					margin-right: 10rpx;
					font-size: 34rpx;
				}
			}

			.iconfont {
				font-size: 40rpx;
				color: #fff;
			}

			.wx {
				margin-right: 30rpx;
				background-color: #61C64F;
			}

			.mima {
				background-color: #28B3E9;
			}

			.yanzheng {
				background-color: #F89C23;
			}

		}
	}

	.code img {
		width: 100%;
		height: 100%;
	}

	.acea-row.row-middle {
		input {
			margin-left: 20rpx;
			display: block;
		}
	}

	.login-wrapper {
		padding: 30rpx;

		.shading {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;

			/* #ifdef APP-VUE */
			margin-top: 50rpx;
			/* #endif */
			/* #ifndef APP-VUE */

			margin-top: 200rpx;
			/* #endif */


			image {
				width: 240rpx;
				height: 240rpx;
			}
		}

		.whiteBg {
			margin-top: 100rpx;

			.list {
				border-radius: 16rpx;
				overflow: hidden;

				.item {
					border-bottom: 1px solid #F0F0F0;
					background: #fff;

					.row-middle {
						position: relative;
						padding: 16rpx 45rpx;

						input {
							flex: 1;
							font-size: 28rpx;
							height: 80rpx;
						}

						.code {
							position: absolute;
							right: 30rpx;
							top: 50%;
							color: var(--view-theme);
							font-size: 26rpx;
							transform: translateY(-50%);
						}
					}
				}
			}

			.logon {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 100%;
				height: 86rpx;
				margin-top: 80rpx;
				background-color: var(--view-theme);
				border-radius: 120rpx;
				color: #FFFFFF;
				font-size: 30rpx;
			}

			.tips {
				margin: 30rpx;
				text-align: center;
				color: #999;
			}
		}
	}
</style>
